package com.example.a2306_shop.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNavController
import com.example.a2306_shop.R
import com.example.a2306_shop.databinding.FragmentMineBinding
import com.example.lib_base.mvvm.BaseFragment
import org.greenrobot.eventbus.util.ErrorDialogManager.SupportManagerFragment


class MineFragment : BaseFragment<FragmentMineBinding,MineViewModel>() {
    override fun initData() {

    }

    override fun initView() {

        val navHostFragment =
            childFragmentManager.findFragmentById(R.id.fragmentContainerView2) as NavHostFragment
        val navController = navHostFragment.navController
        binding.bottom.setupWithNavController(navController)
    }

    override fun getViewModel(): Class<MineViewModel> = MineViewModel::class.java

    override fun getLayout(): Int  = R.layout.fragment_mine

}